package cn.xf.service;

import cn.xf.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author xiaofu
 * @date 2021-05-17 17:22
 * @email dearaf@163.com
 */
public interface IUserService extends UserDetailsService {

    List<UserInfo> findAll();

    void save(UserInfo user);

    UserInfo findById(String id);

    void addRoleToUser(String userId, String[] ids);

    List<UserInfo> findAllByPage(Integer page, Integer pageSize);

    UserInfo findByUsername(String username);

    void update(UserInfo loginUser);
}
